package com.zeny.online.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author zeny
 */
@RestController
@RequestMapping("/test")
@Api(tags = {"测试模块"})
public class TestController {

    @GetMapping("/index/{id}")
    @ApiOperation(value = "测试")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "测试id", example = "1", required = true)
    })
    public String test(@PathVariable("id") Integer id) {
        return "test";
    }
}
